<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>博文</title>
<link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet" type="text/css" />
  <script src="${pageContext.request.contextPath}/js/function.js"> </script>
</head>

<body>
	<div id="table1">
		<a href="${pageContext.request.contextPath}/listBlog">主页</a>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
			href="${pageContext.request.contextPath}/listBlog">博文</a>

		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="${pageContext.request.contextPath}/jsp/login.jsp">退出</a>
	</div>
<div id="main_left">
     <h4>个人资料<a class="in" href="${pageContext.request.contextPath}/jsp/changePassword.jsp" >[管理]</a></h4>
     用户呢称：<p/>
    </div>
	<div id="main_right">
		<h2>
			博文列表&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="in"
				href="${pageContext.request.contextPath}/jsp/addBlog.jsp">【编写博文】</a>
		</h2>
		<table width="651" height="156" border="0">
		  <tr>
		    <td width="414">博文标题</td>
		    <td width="125">创建日期</td>
		    <td width="98">操作</td>
	      </tr>
	      
	      <c:forEach var="blog" items="${requestScope.blogList}" varStatus="status">
		  <tr>
		    <td>${blog.btitle}</td>
		    <td>${blog.bcreateTime }</td>
		    <td><a href="
				<c:url value="BlogListByBid">
					<c:param name="bid" value="${blog.bid}"/>
				</c:url>"
			>修改</a>|<a href="
				<c:url value="delBlog">
					<c:param name="bid" value="${blog.bid}"/>
				</c:url>"
			 	onclick="return confirm('确认删除?')"
			>删除</a></td>
	      </tr>
	      </c:forEach>
	  </table>
<br />
	</div>
</body>
</html>
